/* 2016年12月5日 new header */

@import '~$d/css/common/mixin';
@editor-right-margin: 218px;
@menuTypeWidth: 160px;
.top-menu-style() {
  border: 1px solid #E7E6E3;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  width: @menuTypeWidth;
  margin-left: -@menuTypeWidth/2;
  transition: all 250ms ease;
  transform-origin: 50% 0%;
  transform: scaleY(0.6);
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.1);
}

.top-menu-style-active() {
  &.active {
    .menu_type, .js_menumark {
      visibility: visible;
      opacity: 1;
      transform: scaleY(1);
    }
  }
}


/* 共用样式的覆盖 */

body {
  padding-top: @header-height;
}

.header_container_main {
  position: absolute;
  z-index: 199;
  width: 100%;
  top: 0;
  left: 0;
  transition: transform .4s ease;
  background-color: #fff;
  &.readyin {
    position: fixed;
    top: -@header-height;
  }
  &.in {
    transform: translateY(100%);
    background-color: rgba(255, 255, 255, 0.95);
  }
  .header .header_inner {
    padding: 10px 0;
  }
}

.top_main_nav {
  position: relative;
  z-index: 1;
}

.top_main_nav .top_nav_inner {
  background-color: inherit;
  width: 1200px;
  margin: 0 auto;
  height: 30px;
  position: relative;
  .top-left-index {
    margin-right: 80px;
    font-size: 0;
    display: none;
    float: left;
    .text {
      font-size: 18px;
      padding: 3px 10px;
      border-left: 1px solid #e5e5e5;
      margin-left: 10px;
      color: #82685F;
      font-weight: bold;
    }
  }
}

.top_main_nav .top_nav_inner .index_logo {
  line-height: @header-height;
  display: none;
}

.top_main_nav .top_nav_inner .index_logo .logo_link {
  vertical-align: middle;
  /* height: 40px; */
}

.top_main_nav .nav_list {
  height: 100%;
  display: inline-block;
  font-size: 0;
  vertical-align: top;
  position: relative;
  letter-spacing: 1px;
  &.editor_nav_list {
    position: absolute;
    right: @editor-right-margin - 26px;
    a:hover {
      text-decoration: none;
    }
  }
  .nav_item {
    height: 100%;
    display: inline-block;
    font-size: 14px;
    padding: 5px 5px 0;
    position: relative;
    cursor: default;
    margin-right: 51px;
    text-align: center;
    border: 1px solid transparent;
    border-bottom: none;
    z-index: 1;
    .top-menu-style-active();
    &:nth-last-child(2) {
      margin-right: 0;
    }
    &.text_inner {
      display: block;
      text-decoration: none;
      padding-bottom: 3px;
      border-bottom: 1px solid transparent;
      height: 100%;
      position: relative;
      z-index: 1;
    }
  }
}

.top_main_nav .nav_list .nav_item:not(.no_bgcolor):hover {
  /* background-color: #fff; */
  border-color: #E7E6E3;
}

.top_main_nav .nav_list .nav_item:not(.no_bgcolor):hover .text_inner {
  border-color: #E7E6E3;
}

.top_main_nav .nav_list .nav_item.active .menu_type {
  opacity: 1;
  transform: scaleY(1);
}

.top_main_nav .nav_list .nav_item:hover .icon_xia {
  transform: scale(.8) rotate(-180deg);
}

.top_main_nav .nav_list .nav_item a {
  color: inherit;
}

.top_main_nav .nav_item .menu_type {
  .top-menu-style();
  border-top: none;
  left: 50%;
}

.top_main_nav .nav_item .menu_type li {
  position: relative;
  text-align: left;
  padding: 0 10px;
  transition: all .5s ease;
}

.top_main_nav .nav_item .menu_type li:hover {
  background-color: #EFEEEC;
}

.top_main_nav .nav_item .menu_type>li:hover .iconfont {
  color: #44b549;
}

.top_main_nav .nav_item .menu_type>li .child_menu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 110px;
  background-color: #fff;
  -webkit-transition: all .4s ease;
  -o-transition: all .4s ease;
  transition: all .4s ease;
  opacity: 0;
  border: 1px solid #E7E6E3;
  -webkit-transform: translateX(-10px);
  -ms-transform: translateX(-10px);
  -o-transform: translateX(-10px);
  transform: translateX(-10px);
  z-index: 10;
}

.top_main_nav .nav_item .menu_type li a .more_menu {
  margin-right: 0 !important;
  font-size: 12px !important;
  float: right;
}

.top_main_nav .nav_item .menu_type li .child_menu li {
  text-align: center;
}

.top_main_nav .nav_item .menu_type>li:hover .child_menu {
  opacity: 1;
  transform: translateX(0px);
}

.top_main_nav .nav_item .menu_type li a, .top_main_nav .nav_item .menu_type li .child_menu .child_item a {
  line-height: 25px;
  text-decoration: none;
  display: block;
  height: 100%;
  padding: 12px 0;
  text-align: center;
  /* border-bottom: 1px solid #E7E6E3; */
  margin: -1px;
}

.top_main_nav .nav_item .menu_type li a .iconfont {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 10px;
}

.top_main_nav .nav_item .menu_type li a .text_link {
  vertical-align: middle;
}

.top_main_nav .nav_item .menu_type>li:last-child a, .top_main_nav .nav_item .menu_type li .child_menu .child_item:last-child a {
  border-bottom: none;
}


/* .top_main_nav .nav_item.edit_article .menu_type {
  left: -1px;
  right: -20px;
}
.top_main_nav .nav_item.send_message .menu_type {
  left: -1px;
  right: -20px;
} */

.top_main_nav .parent_menu .icon_xia {
  display: inline-block;
  font-size: 12px;
  -webkit-transform: scale(.8);
  -ms-transform: scale(.8);
  -o-transform: scale(.8);
  transform: scale(.8);
  margin-left: 4px;
  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

.top_main_nav .top_nav_inner .right_info {
  background-color: inherit;
  z-index: 2;
  position: relative;
  margin: 0 0 0 auto;
  display: inline-block;
  float: right;
  height: 100%;
  min-width: @editor-right-margin;
  text-align: right;
  .home_link {
    line-height: @header-height;
    vertical-align: top;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    padding-left: 5px;
    margin-right: 20px;
    &:hover {
      text-decoration: none;
    }
  }
  .home_split {
    width: 0;
    font-size: 18px;
    border-left: 1px solid #E7E6E3;
    line-height: @header-height;
    margin: 0 6px;
  }
  .status_enter {
    .user_info_lite {
      line-height: @header-height;
    }
  }
}

.top_main_nav .top_nav_inner .right_info .status {
  height: 100%;
  display: inline-block;
  line-height: 30px;
  vertical-align: top;
}

.top_main_nav .top_nav_inner .right_info .status_outer {
  padding-left: 30px;
  .register_page {
    margin-left: 30px;
  }
}

.top_main_nav .top_nav_inner .right_info .notice_info {
  display: inline-block;
  margin-right: 30px;
  vertical-align: top;
}

.top_main_nav .notice_info ul {
  line-height: @header-height;
}

.top_main_nav .notice_info {
  height: 100%;
  overflow: hidden;
}

.top_main_nav .notice_info ul .notice_item a {
  color: inherit;
  vertical-align: middle;
}

.top_main_nav .notice_info ul .notice_item:before {
  content: "\e66f";
  font-family: 'iconfont';
  vertical-align: middle;
  margin-right: 4px;
  font-size: 16px;
  color: #FF7900;
}

.top_main_nav .user_info_container {
  position: relative;
  display: inline-block;
  vertical-align: top;
  z-index: 1;
  .top-menu-style-active();
}

.top_main_nav .user_info_container .user_info_simple {
  padding: 0 20px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  display: inline-block;
  height: ~'calc(100% + 1px)';
  text-decoration: none;
  transition: all .4s ease;
  position: relative;
  z-index: 1;
  line-height: @header-height;
}

.top_main_nav .user_info_container .user_info_simple .icon_xia {
  transition: all .5s ease;
  font-size: 12px;
  margin-left: 4px;
  transform: scale(.8);
  display: inline-block;
}

.top_main_nav .user_info_container .user_info_simple:hover .user_nicename {
  text-decoration: underline;
}

.top_main_nav .user_info_container .user_info_simple .user_nicename {
  display: inline-block;
  max-width: 116px;
  vertical-align: top;
}

.top_main_nav .user_info_container:hover .user_info_simple {
  background-color: #fff;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

.top_main_nav .user_info_container:hover .icon_xia {
  transform: rotate(-180deg) scale(.8);
}

.top_main_nav .user_info_container .user_info_simple .face_img {
  border: 1px solid #e5e5e5;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 6px;
}

.top_main_nav .user_info_container .user_info_detail {
  .top-menu-style();
  width: 216px;
  right: 0;
  padding: 0 10px;
  .logout {
    display: block;
    text-align: center;
    padding: 5px 0;
  }
}

.top_main_nav .user_info_detail hr {
  margin: 10px 0 0;
}

.top_main_nav .user_info_detail .linkbox {
  font-size: 0;
  overflow: hidden;
  .linkbox-item {
    width: 50%;
    display: inline-block;
    text-align: center;
    border-bottom: 1px solid #d2d2d2;
    padding: 10px 0;
    line-height: 1;
    .text_link {
      vertical-align: middle;
      display: inline-block;
      width: 100%;
      line-height: 1;
      padding: 3px 0;
    }
    &:nth-child(2n-1) {
      .text_link {
        border-right: 1px solid #d2d2d2;
      }
    }
  }
}

.top_main_nav .big_face_box .big_face {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid #E7E6E3;
  margin-right: 6px;
}

.top_main_nav .right_user_info {
  position: absolute;
  line-height: 1;
  padding-top: 4px;
  left: 66px;
  right: 4px;
  top: 0;
  bottom: 3px;
}

.top_main_nav .right_user_info .user_nikename {
  font-size: 16px;
  margin-bottom: 16px;
}

.top_main_nav .right_user_info .notice {
  font-size: 26px;
  position: absolute;
  bottom: -3px;
  left: -2px;
  text-decoration: none;
}

.top_main_nav .big_face_box {
  height: 50px;
  position: relative;
  padding: 0 4px;
  margin-top: 10px;
}

.top_main_nav .top_nav_search {
  position: relative;
  border: 1px solid #9E9A94;
  border-radius: 30px;
  height: 30px;
  overflow: hidden;
  display: inline-block;
  margin-top: 14px;
  padding-left: 12px;
  width: 32px;
  -webkit-transition: width .3s ease;
  -o-transition: width .3s ease;
  transition: width .3s ease;
}

.top_main_nav .top_nav_search.active {
  width: 200px;
}

.top_main_nav .top_nav_search .search_inner {
  width: 200px;
  overflow: hidden;
  float: right;
  height: 100%;
}

.top_main_nav .top_nav_search .search_ipt {
  border: none;
  width: 156px;
  height: 100%;
  float: right;
}

.top_main_nav .top_nav_search .top_search_btn {
  display: inline-block;
  float: right;
  line-height: 27px;
  padding: 0 7px;
  cursor: pointer;
}

.article_import_modal .modal-dialog {
  width: 400px;
}

.article_import_modal .modal-body .art_url_src {
  padding: 10px 0 10px 77px;
}

.article_import_modal .modal-footer {
  text-align: center;
  font-size: 0;
}

.article_import_modal .modal-footer .btn {
  min-width: 90px;
  font-size: 14px;
}

.article_import_modal .modal-footer .btn+.btn {
  margin-left: 30px;
}

.article_import_modal .text_cell:first-child {
  margin-bottom: 30px;
}

.article_import_modal .text_cell .text {
  vertical-align: middle;
  padding: 0 10px 0 0;
  text-align: center;
  display: inline-block;
  min-width: 74px;
}

.article_import_modal .text_cell .dropdown-menu>li>a {
  padding: 3px 12px;
}

.article_import_modal .text_cell .input_url {
  height: 30px;
  padding-left: 8px;
  width: 290px;
}

.article_import_modal .text_cell .sub_file_name {
  vertical-align: middle;
  display: inline-block;
  width: 200px;
  padding-left: 12px;
}

.article_import_modal .text_cell .js_browse_file {
  width: 70px;
  padding: 4px 12px;
}

.header_container_main.inner_page, .header.static_html {
  box-shadow: 0px 2px 3px rgba(0, 0, 0, .1);
}

.header_container_main.inner_page .top_main_nav .top_nav_inner {
  height: @header-height;
  .top-left-index {
    display: inline-block;
  }
}

.header_container_main.inner_page .top_main_nav .user_info_container {
  height: 100%;
}

.header_container_main.inner_page .top_main_nav .user_info_container .user_info_simple .face_img {
  height: 30px;
  width: 30px;
}

.header_container_main.inner_page .top_main_nav .user_notice {
  padding: 0 11px;
  height: 100%;
  border: 1px solid transparent;
  position: relative;
  transition: all .4s ease;
  .top-menu-style-active();
  .notice-list {
    .top-menu-style();
    right: 0;
    width: @menuTypeWidth;
    text-align: center;
    li {
      transition: all .4s ease;
      a {
        text-decoration: none;
        display: block;
        padding: 18px 0;
        line-height: 1;
      }
      &:hover {
        background-color: #EFEEEC;
      }
    }
  }
  &:hover {}
  .notice_icon {
    font-size: 28px;
    display: inline-block;
    text-decoration: none;
    line-height: @header-height;
  }
  .num {
    display: none;
    min-width: 16px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
    background-color: #e60012;
    color: #fff;
    position: absolute;
    right: 12px;
    top: @header-height/2 - ( 16 + 2);
  }
  &:hover {
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
  }
}

.header_container_main.inner_page .top_main_nav .top_nav_inner .index_logo {
  display: inline-block;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_item {
  padding-top: 0;
  border-color: transparent;
  border-top: none;
  border-bottom: none;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_item>a {
  line-height: @header-height;
  height: @header-height;
  padding-bottom: 0;
  border-bottom: none;
  display: inline-block;
  text-decoration: none;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_item:first-child>a {
  text-decoration: none;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_top_list {
  content: '';
  display: inline-block;
  height: 3px;
  transition: all .4s ease;
  background-color: #44B549;
  position: absolute;
  left: 0;
  top: 52px;
  opacity: 0;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_top_list.unopa {
  opacity: 1;
}

.header_container_main.inner_page .top_main_nav .nav_list .nav_item:hover .parent_menu {
  color: #44B549;
}

.header_container_main.inner_page .top_main_nav .nav_item .menu_type {
  border-color: #e5e5e5;
}

.header_container_main.inner_page .top_main_nav .top_nav_inner .right_info .status_outer {
  line-height: @header-height;
}


/*通知start*/

.top_main_nav .user_notice {
  display: inline-block;
  position: relative;
}

.top_main_nav .user_notice:hover {
  text-decoration: none;
}

.top_main_nav .user_notice .icon-tongzhi {
  padding: 0 5px;
  font-size: 24px;
  color: #9c9c9c;
  -webkit-text-stroke-width: 0;
}

.top_main_nav .user_notice.notice_show .icon-tongzhi {
  display: none;
}

.top_main_nav .user_notice.notice_show .num {
  display: inline-block;
}

.top_main_nav .user_notice.notice_show .notice_newest {
  display: block;
}

.notice_newest {
  display: none;
  position: absolute;
  right: -20px;
  top: 100%;
  width: 280px;
  padding: 16px 0 12px 16px;
  border: 1px solid #d4e3a6;
  border-radius: 3px;
  background-color: #fff;
  cursor: default;
  text-align: left;
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e60012;
    margin: 6px 8px 0 0;
  }
  .notice_text {
    line-height: 20px;
    color: #9c9c9c;
    font-size: 12px;
    max-height: 40px;
    width: 194px;
    overflow: hidden;
    cursor: pointer;
  }
  .shut {
    color: #9c9c9c;
    position: absolute;
    right: 10px;
    top: 6px;
    line-height: 14px;
    cursor: pointer;
  }
  .arrow {
    position: absolute;
    top: -16px;
    right: 42px;
    border: 8px solid transparent;
    border-bottom-color: #d4e3a6;
    &:after {
      content: '';
      position: absolute;
      left: -8px;
      top: -7px;
      border: 8px solid transparent;
      border-bottom-color: #fff;
    }
  }
}
